package com.zqxq.auth.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zqxq.auth.entity.po.UserAdmin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 管理员账号表 Mapper 接口
 * </p>
 *
 * @author 江枫
 * @since 2018-01-08
 */
@Component
public interface UserAdminMapper extends BaseMapper<UserAdmin> {
    public List<UserAdmin> test(int num);

    List<Map> getUserList(@Param("roles") String roles, @Param("offset") long offset, @Param("pageSize") Integer pageSize);

    Long getUserTotal(@Param("roles") String roles);
}